body {
  margin: 0;
  background: linear-gradient(150deg, #d32f2f 0%, #b71c1c 100%);
  font-family: 'Ma Shan Zheng', cursive;
  min-height: 100vh;
  overflow: hidden;
}

.lantern-container {
  position: relative;
  text-align: center;
  margin-top: 2rem;
  animation: swing 3s ease-in-out infinite;
}

.lantern {
  width: 120px;
  height: 150px;
  margin: 0 auto;
  position: relative;
}

.lantern-body {
  background: #ffd700;
  width: 100%;
  height: 80%;
  border-radius: 50px/40px;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.lantern-tassel {
  position: absolute;
  bottom: -40px;
  left: 50%;
  width: 3px;
  height: 40px;
  background: #ffd700;
  transform: translateX(-50%);
}

.title {
  color: #ffd700;
  font-size: 3rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-top: 1rem;
}

.game-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.difficulty-selector {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.difficulty-btn {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 25px;
  background: #ffd700;
  color: #b71c1c;
  font-family: inherit;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s;
}

.difficulty-btn.active {
  background: #b71c1c;
  color: #ffd700;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.puzzle-text {
  font-size: 1.5rem;
  color: #fff;
  line-height: 1.6;
  margin: 2rem 0;
  min-height: 80px;
}

.input-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}

.answer-input {
  padding: 1rem;
  border: 2px solid #ffd700;
  border-radius: 10px;
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 300px;
}

.submit-btn {
  padding: 1rem 2rem;
  background: #ffd700;
  color: #b71c1c;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.submit-btn:hover {
  transform: scale(1.05);
}

.score-board {
  display: flex;
  justify-content: space-between;
  color: #ffd700;
  font-size: 1.2rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

@keyframes swing {
  0%,
  100% {
    transform: rotate(-3deg);
  }
  50% {
    transform: rotate(3deg);
  }
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -1;
}
